package com.fakepath.views;

import com.fakepath.listeners.ScrollListener;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ScrollView;

public class ObservableScrollView extends ScrollView {
	 private ScrollListener scrollListener;

	  public ObservableScrollView(Context paramContext)
	  {
	    super(paramContext);
	  }

	  public ObservableScrollView(Context paramContext, AttributeSet paramAttributeSet)
	  {
	    super(paramContext, paramAttributeSet);
	  }

	  public ObservableScrollView(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
	  {
	    super(paramContext, paramAttributeSet, paramInt);
	  }

	  protected void onScrollChanged(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
	  {
	    super.onScrollChanged(paramInt1, paramInt2, paramInt3, paramInt4);
	    if (this.scrollListener != null)
	      this.scrollListener.onScrollChanged(this, paramInt1, paramInt2, paramInt3, paramInt4);
	  }

	  public void setScrollListener(ScrollListener paramScrollListener)
	  {
	    this.scrollListener = paramScrollListener;
	  }
}
